-
Notifications
You must be signed in to change notification settings - Fork 3k
Add logs to the CI output #1789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like the log is too long with this enabled: Maybe we can output logs to files for each module and fetch them when we need them? We can look into getting the files produced. |
It is still possible to see the logs by downloading them starting from the
I was able to come up with a solution where I put the output of the tests for subproject specific files, and added them as an artifacts for the builds in case of a failure. This archive is accessible under the Sample output (build/testlogs/iceberg-parquet.log): Since I think this could be useful for every time we run the tests I have configured this logging not only for CI runs but for general test runs as well - some might disagree so please check this. Thanks, |
| with: | ||
| name: test logs | ||
| path: | | ||
| **/build/testlogs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just need to archive **/build/reports. The reports have the full stack traces and usually have any stderr/stdout for each test. That may be easier than creating a separate file since I think we already aggregate the logs there.
|
@pvary, looks great! Thanks for looking into the archive options. I think we may be able to do this more simply by archiving reports instead of creating new log files. The reports I've used have had stderr/stdout. |
Thanks for reviewing @rdblue! I found them lacking because of 2 reasons:
For the 2nd option I have tried the official solution for aggregating the results, but it only does the aggregation if there is no test failure which is less than ideal 😄 So that is why I have decided to backtrack to the "have a file for a subproject output and keep the original test output" solution. After my trip to the test output aggregation I feel that if we want to have aggregate test results then it should be done in a different PR and here we should concentrate on the archiving the logs |
|
I thought that logs printed to stderr and stdout were available in the test reports. Maybe I'm wrong though. For the second problem, I thought that you'd usually know which test had failed and go looking for its results. |
|
I'll merge this so that we have something working to debug these cases. We can always improve on it later. |
No description provided.